package org.edu.modules.center.dto;

import java.io.Serializable;
import java.util.List;
import org.edu.modules.center.Bo.VeTeachWeightsBo;

public class TeachStudentScoreDto
        implements Serializable
{
    private String name;
    private Integer weight;
    private Integer condition;
    private String unit;
    private List<VeTeachWeightsBo> weightList;

    public void setCondition(Integer condition)
    {
        this.condition = condition;
    }

    public int hashCode()
    {
        int PRIME = 59;int result = 1;Object $weight = getWeight();result = result * 59 + ($weight == null ? 43 : $weight.hashCode());Object $condition = getCondition();result = result * 59 + ($condition == null ? 43 : $condition.hashCode());Object $name = getName();result = result * 59 + ($name == null ? 43 : $name.hashCode());Object $unit = getUnit();result = result * 59 + ($unit == null ? 43 : $unit.hashCode());Object $weightList = getWeightList();result = result * 59 + ($weightList == null ? 43 : $weightList.hashCode());return result;
    }

    protected boolean canEqual(Object other)
    {
        return other instanceof TeachStudentScoreDto;
    }

    public boolean equals(Object o)
    {
        if (o == this) {
            return true;
        }
        if (!(o instanceof TeachStudentScoreDto)) {
            return false;
        }
        TeachStudentScoreDto other = (TeachStudentScoreDto)o;
        if (!other.canEqual(this)) {
            return false;
        }
        Object this$weight = getWeight();Object other$weight = other.getWeight();
        if (this$weight == null ? other$weight != null : !this$weight.equals(other$weight)) {
            return false;
        }
        Object this$condition = getCondition();Object other$condition = other.getCondition();
        if (this$condition == null ? other$condition != null : !this$condition.equals(other$condition)) {
            return false;
        }
        Object this$name = getName();Object other$name = other.getName();
        if (this$name == null ? other$name != null : !this$name.equals(other$name)) {
            return false;
        }
        Object this$unit = getUnit();Object other$unit = other.getUnit();
        if (this$unit == null ? other$unit != null : !this$unit.equals(other$unit)) {
            return false;
        }
        Object this$weightList = getWeightList();Object other$weightList = other.getWeightList();return this$weightList == null ? other$weightList == null : this$weightList.equals(other$weightList);
    }

    public void setWeightList(List<VeTeachWeightsBo> weightList)
    {
        this.weightList = weightList;
    }

    public void setName(String name)
    {
        this.name = name;
    }

    public void setWeight(Integer weight)
    {
        this.weight = weight;
    }

    public String toString()
    {
        return "TeachStudentScoreDto(name=" + getName() + ", weight=" + getWeight() + ", condition=" + getCondition() + ", unit=" + getUnit() + ", weightList=" + getWeightList() + ")";
    }

    public void setUnit(String unit)
    {
        this.unit = unit;
    }

    public String getName()
    {
        return this.name;
    }

    public Integer getWeight()
    {
        return this.weight;
    }

    public Integer getCondition()
    {
        return this.condition;
    }

    public String getUnit()
    {
        return this.unit;
    }

    public List<VeTeachWeightsBo> getWeightList()
    {
        return this.weightList;
    }
}
